import { pubRequire } from '@utils/public'
const baseUrl = '/activities/posts'
// 获取列表
export function getSearchList(params, callBack, errBack) {
  return pubRequire(
    'get',
    `${baseUrl}/reviews/contents`,
    params,
    callBack,
    errBack
  )
}
// 通过单个
export function passSingleAPI(id, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/${id}/reviews/contents/pass`,
    '',
    callBack,
    errBack
  )
}
// 批量通过
export function passMultAPI(obj, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/reviews/contents/pass`,
    obj,
    callBack,
    errBack
  )
}
// 批量不通过
export function failMultRequestAPI(params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/reviews/contents/unpass`,
    params,
    callBack,
    errBack
  )
}
// 不通过单个
export function failSingleRequestAPI(id, params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/${id}/reviews/contents/unpass`,
    params,
    callBack,
    errBack
  )
}
/*帖子内容审核详情*/
export function getForm(id, params, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}/${id}`, params, callbBack, errBack)
}
